/*
 * @Author: lei
 * @Date: 2021-08-04 14:28:31
 * @LastEditTime: 2021-08-04 14:36:36
 * @LastEditors: Please set LastEditors
 * @Description: 测试类的对象所占内存空间大小
 * @FilePath: /code/bytesofclass.cpp
 */
#include <iostream>
using namespace std;
class A
{
public:
    int a;
    char c;
    char d;
    double f;
private:
    virtual void show(){
        
    }
};
class B
{
public:
    
private:

};
class C:B
{
    
};
int main()
{
    A a;
    cout<<"sizeof(a)= "<<sizeof(a)<<endl;
    B b;
    cout<<"sizeof(b)= "<<sizeof(b)<<endl;
    C c;
    cout<<"sizeof(c)= "<<sizeof(c)<<endl;
    return 0;
}